package com.ff.discounts.component.address

data class AddressData(
    val address: String,
    val area_id: Int,
    val area_name: String,
    val city_id: Int,
    val city_name: String,
    val consignee: String,
    val id: Int = 0,
    val is_default: String,
    val latitude: Any,
    val longitude: Any,
    val phone: String,
    val province_id: Int,
    val province_name: String,
    val user_id: Int
){
    val isDefault: Boolean
        get() {
            return is_default == "1"
        }
    val getPeople:String
        get(){
            return "${phone} ${consignee}"
        }
    val getArea:String
        get() {
            return "${province_name}-${city_name}-${area_name}"
        }
}
